package org.theSeed.web.confg;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.theSeed.web.filter.RepeatReadFilter;
import org.theSeed.web.filter.ReqAndResLogFilter;
import org.theSeed.web.filter.TraceFilter;

import java.util.HashMap;

@Configuration
public class WebConfig {
    @Bean
    public TraceFilter traceFilter(){
        return new TraceFilter(Integer.MIN_VALUE);
    }

    @Bean
    public RepeatReadFilter repeatReadFilter(){
        return new RepeatReadFilter(Integer.MIN_VALUE + 1);
    }

    @Bean
    public ReqAndResLogFilter reqAndResLogFilter(){
        return new ReqAndResLogFilter(Integer.MIN_VALUE + 10);
    }
}
